package com.linyf.design.abstractFactory.one;

import com.linyf.design.abstractFactory.one.productA.ProductA;
import com.linyf.design.abstractFactory.one.productB.ProductB;

/**
 * @Author: linyf
 * @Description: TODO
 * @DateTime: 2023/3/29 9:47
 **/
public class Main {

    public static void main(String[] args) {

        AbstractProductFactory factory = new WithProductFactory();

        final ProductA productA = factory.createWomanProductA();

        System.err.println(productA.getName());
        System.err.println(productA.getSex());


        final ProductB productB = factory.createProductB();

        System.err.println(productB.getSex());

    }
}
